<template>
  <div v-if="$route.meta.useFrame != undefined && $route.meta.useFrame == true">
    <!--是展现内容的地方-->
    <RouterView />
  </div>
  <div v-if="$route.meta.useFrame == undefined || $route.meta.useFrame == false">
    <el-container>
      <el-header class="header">
        <el-row class="row-bg" justify="space-between">
          <el-col :span="6">
            <img src="./assets/logo.jpg" alt="" width="200" height="46">
          </el-col>
          <el-col :span="6" style="margin-top: 10px;">
            智能多端服务平台
          </el-col>
          <el-col :span="6">
            <el-dropdown>
              <span class="el-dropdown-link">
                我的
                <el-icon style="color:aliceblue" size="15px">
                  <Avatar />
                </el-icon>
              </span>
              <template #dropdown>
                <el-dropdown-menu>
                  <el-dropdown-item>个人中心</el-dropdown-item>
                  <el-dropdown-item>账户与安全</el-dropdown-item>
                  <el-dropdown-item>关于我们</el-dropdown-item>
                  <el-dropdown-item divided>退出</el-dropdown-item>
                </el-dropdown-menu>
              </template>
            </el-dropdown>
          </el-col>
        </el-row>
      </el-header>
      <el-container>
        <el-aside width="200px" class="menu">
          <Menu> </Menu>
        </el-aside>
        <el-main>
          <!--是展现内容的地方-->
          <RouterView />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script setup lang="ts">
import Menu from "./components/Menu.vue";

</script>

<style scoped>
.header {
  background-color: #c6e2ff;
  height: 45px;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
}
.menu{
  background-color: #e9eef3;
}
.el-dropdown{
  line-height: 3em !important;
  float: right;
}
</style>
